#include "httprequest_luabinding.h"
#include "CCLuaEngine.h"

void package_httpreq_register()
{
	auto engine = cocos2d::LuaEngine::getInstance();
	lua_State* L = engine->getLuaStack()->getLuaState();

	lua_getglobal(L, "_G");
	if (lua_istable(L, -1))//stack:...,_G,
	{
		luaopen_httprequest_luabinding(L);
	}
	lua_pop(L, 1);
}

